﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MySoftLab.DapFlashCore.Targets
{
    public class FlashRegion : MemoryRegion
    {
        public uint SectorSize { get; set; }

        public uint PageSize { get; set; }

        public bool IsBootMemory { get; set; }

        public FlashAlgo? Algo { get; set; }

        public FlashRegion(string name, uint start, uint length, uint sectorSize, uint pageSize, bool isBootMemory, FlashAlgo? algo) : base(name, start, length)
        {
            SectorSize = sectorSize;
            PageSize = pageSize;
            IsBootMemory = isBootMemory;
            Algo = algo;
            MemoryType = MemoryType.FLASH;
        }
    }
}
